package com.dkm.ec.cart.persistence.entity;
import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.dkm.base.api.annotion.IField;
import com.dkm.base.api.annotion.ITable;
import com.dkm.base.db.persistence.entity.AbstractPo;

/**
 * 对象功能:购物车项目 Tbl对象
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-05-17 23:33:18
 */
 @ITable(name="cartItem",code="t_cart_item")
public class CartItemTbl extends AbstractPo<String>{
	@IField(name="id",column="id_")
	protected String  id; 		/*项目 ID*/
	@IField(name="cartId",column="cart_id_")
	protected String  cartId; 		/*购物车 ID*/
	@IField(name="prodSkuId",column="prod_sku_id_")
	protected String  prodSkuId; 		/*产品SKU ID*/
	@IField(name="prodSkuKey",column="prod_sku_key_")
	protected String  prodSkuKey; 		/*产品SKU 业务键*/
	@IField(name="saveType",column="save_type_")
	protected String  saveType; 		/*保存类型。buy_now=现在购买；direct=直接购买；buy_later=以后购买*/
	@IField(name="isSaved",column="is_saved_")
	protected char  isSaved; 		/*是否暂存*/
	@IField(name="isMain",column="is_main_")
	protected char  isMain; 		/*是否主项目。主项目为正常，从项目为赠品。*/
	@IField(name="mainId",column="main_id_")
	protected String  mainId; 		/*从属主项目 ID*/
	@IField(name="qty",column="qty_")
	protected Integer  qty; 		/*购买数量*/
	@IField(name="preSalePrice",column="pre_sale_price_")
	protected java.math.BigDecimal  preSalePrice; 		/*上一个销售价格*/
	@IField(name="salePrice",column="sale_price_")
	protected java.math.BigDecimal  salePrice; 		/*销售价格(快照冗余)*/
	@IField(name="amount",column="amount_")
	protected java.math.BigDecimal  amount; 		/*折后单价*/
	@IField(name="productType",column="product_type_")
	protected String  productType; 		/*产品形态。entity=实体产品；mix=产品包；software=软体产品；service=服务*/
	@IField(name="salesType",column="sales_type_")
	protected String  salesType; 		/*类型。stock=按库存销售；pre_order=预售；stock_and_back=按库存并缺货销售；always=永远可售*/
	@IField(name="mainCloudPath",column="main_cloud_path_")
	protected String  mainCloudPath; 		/*SKU主图*/
	@IField(name="createTime",column="create_time_")
	protected java.util.Date  createTime; 		/*创建时间*/
	@IField(name="updateTime",column="update_time_")
	protected java.util.Date  updateTime; 		/*更新时间*/
	
	
	public void setId(String id) 
	{
		this.id = id;
	}
	/**
	 * 返回 项目 ID
	 * @return
	 */
	public String getId() 
	{
		return this.id;
	}
	public void setCartId(String cartId) 
	{
		this.cartId = cartId;
	}
	/**
	 * 返回 购物车 ID
	 * @return
	 */
	public String getCartId() 
	{
		return this.cartId;
	}
	public void setProdSkuId(String prodSkuId) 
	{
		this.prodSkuId = prodSkuId;
	}
	/**
	 * 返回 产品SKU ID
	 * @return
	 */
	public String getProdSkuId() 
	{
		return this.prodSkuId;
	}
	public void setProdSkuKey(String prodSkuKey) 
	{
		this.prodSkuKey = prodSkuKey;
	}
	/**
	 * 返回 产品SKU 业务键
	 * @return
	 */
	public String getProdSkuKey() 
	{
		return this.prodSkuKey;
	}
	public void setSaveType(String saveType) 
	{
		this.saveType = saveType;
	}
	/**
	 * 返回 保存类型。buy_now=现在购买；direct=直接购买；buy_later=以后购买
	 * @return
	 */
	public String getSaveType() 
	{
		return this.saveType;
	}
	public void setIsSaved(char isSaved) 
	{
		this.isSaved = isSaved;
	}
	/**
	 * 返回 是否暂存
	 * @return
	 */
	public char getIsSaved() 
	{
		return this.isSaved;
	}
	public void setIsMain(char isMain) 
	{
		this.isMain = isMain;
	}
	/**
	 * 返回 是否主项目。主项目为正常，从项目为赠品。
	 * @return
	 */
	public char getIsMain() 
	{
		return this.isMain;
	}
	public void setMainId(String mainId) 
	{
		this.mainId = mainId;
	}
	/**
	 * 返回 从属主项目 ID
	 * @return
	 */
	public String getMainId() 
	{
		return this.mainId;
	}
	public void setQty(Integer qty) 
	{
		this.qty = qty;
	}
	/**
	 * 返回 购买数量
	 * @return
	 */
	public Integer getQty() 
	{
		return this.qty;
	}
	public void setPreSalePrice(java.math.BigDecimal preSalePrice) 
	{
		this.preSalePrice = preSalePrice;
	}
	/**
	 * 返回 上一个销售价格
	 * @return
	 */
	public java.math.BigDecimal getPreSalePrice() 
	{
		return this.preSalePrice;
	}
	public void setSalePrice(java.math.BigDecimal salePrice) 
	{
		this.salePrice = salePrice;
	}
	/**
	 * 返回 销售价格(快照冗余)
	 * @return
	 */
	public java.math.BigDecimal getSalePrice() 
	{
		return this.salePrice;
	}
	public void setAmount(java.math.BigDecimal amount) 
	{
		this.amount = amount;
	}
	/**
	 * 返回 折后单价
	 * @return
	 */
	public java.math.BigDecimal getAmount() 
	{
		return this.amount;
	}
	public void setProductType(String productType) 
	{
		this.productType = productType;
	}
	/**
	 * 返回 产品形态。entity=实体产品；mix=产品包；software=软体产品；service=服务
	 * @return
	 */
	public String getProductType() 
	{
		return this.productType;
	}
	public void setSalesType(String salesType) 
	{
		this.salesType = salesType;
	}
	/**
	 * 返回 类型。stock=按库存销售；pre_order=预售；stock_and_back=按库存并缺货销售；always=永远可售
	 * @return
	 */
	public String getSalesType() 
	{
		return this.salesType;
	}
	public void setMainCloudPath(String mainCloudPath) 
	{
		this.mainCloudPath = mainCloudPath;
	}
	/**
	 * 返回 SKU主图
	 * @return
	 */
	public String getMainCloudPath() 
	{
		return this.mainCloudPath;
	}
	public void setCreateTime(java.util.Date createTime) 
	{
		this.createTime = createTime;
	}
	/**
	 * 返回 创建时间
	 * @return
	 */
	public java.util.Date getCreateTime() 
	{
		return this.createTime;
	}
	public void setUpdateTime(java.util.Date updateTime) 
	{
		this.updateTime = updateTime;
	}
	/**
	 * 返回 更新时间
	 * @return
	 */
	public java.util.Date getUpdateTime() 
	{
		return this.updateTime;
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() 
	{
		return new ToStringBuilder(this)
		.append("id", this.id) 
		.append("cartId", this.cartId) 
		.append("prodSkuId", this.prodSkuId) 
		.append("prodSkuKey", this.prodSkuKey) 
		.append("saveType", this.saveType) 
		.append("isSaved", this.isSaved) 
		.append("isMain", this.isMain) 
		.append("mainId", this.mainId) 
		.append("qty", this.qty) 
		.append("preSalePrice", this.preSalePrice) 
		.append("salePrice", this.salePrice) 
		.append("amount", this.amount) 
		.append("productType", this.productType) 
		.append("salesType", this.salesType) 
		.append("mainCloudPath", this.mainCloudPath) 
		.append("createTime", this.createTime) 
		.append("updateTime", this.updateTime) 
		.toString();
	}
}